package com.swift.authority.application.config.druid;


import com.alibaba.druid.pool.DruidDataSource;
import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;

/**
 * @author Administrator
 * @description :
 * @date 2022/06/19 7:56
 * @since open jdk 1.8
 */
@Configuration
public class DruidConfig {
    @Bean()
    @Primary
    public DruidDataSource DruidDataSource() {
        return DruidDataSourceBuilder.create().build();
    }
}
